<?php

namespace App\Kuafu\Product\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ProductCodeEnum extends BaseCodeEnum
{

    public const ERR_PRODUCT_NAME_NOT_INPUT         = 408001;
    public const ERR_PRODUCT_NAME_EXIST             = 408002;
    public const ERR_PRODUCT_CATE_NOT_SELECT        = 408003;
    public const ERR_PRODUCT_DESC_NOT_INPUT         = 408004;
    public const ERR_PRODUCT_IMAGE_NOU_INPUT        = 408005;
    public const ERR_PRODUCT_PRICE_NOT_INPUT        = 408006;
    public const ERR_PRODUCT_PRICE                  = 408007;
    public const ERR_PRODUCT_PRICE_TWO_POS          = 408008;
    public const ERR_PRODUCT_NOT_EXIST              = 408009;
    public const ERR_PRODUCT_STATUS                 = 408010;
    public const ERR_PRODUCT_STATUS_EXIST           = 408011;
    public const ERR_PRODUCT_NOT_INPUT              = 408012;
    public const ERR_PRODUCT_INSERT                 = 408013;
    public const ERR_PRODUCT_PARAM                  = 408014;
    public const ERR_PRODUCT_BIND_MENU              = 408015;
    public const ERR_PRODUCT_VIP_PRICE_NOT_INPUT    = 408017;
    public const ERR_PRODUCT_COST_PRICE_NOT_INPUT   = 408018;
    public const ERR_PRODUCT_COMPANY_NOT_INPUT      = 408019;
    public const ERR_PRODUCT_PRODUCT_NOT_IN_SHOP    = 408020;
    public const ERR_PRODUCT_BRAND_NOT_INPUT        = 408021;
    public const ERR_PRODUCT_PACKAGE_INSERT         = 408022;
    public const ERR_PRODUCT_MODIFY                 = 408023;
    public const ERR_PRODUCT_PACKAGE_DELETED        = 408024;
    public const ERR_PRODUCT_GET                    = 408025;
    public const ERR_PRODUCT_KIND_NOT_INPUT         = 408026;
    public const CUSTOMER_PRODUCT_LIMIT             = 408027;
    public const ERR_PRODUCT_STATUS_SET             = 408028;
    public const ERR_PRODUCT_STATUS_DELETE          = 408029;
    public const ERR_PRODUCT_WEB_CUSTOM_PACKAGE_ADD = 408030;
    public const ERR_PRODUCT_EXISTS_IN_PACKAGE      = 408031;
    public const ERR_PRODUCT_DEL_AFTER_OFFLINE      = 408032;
    public const ERR_CHILD_PRODUCT                  = 408033;
    public const ERR_PRODUCT_STATUS_OFF             = 408034;

    public const ERR_PRODUCT_UPDATE              = 508001;
    public const ERR_PRODUCT_NO_MENU             = 508002;
    public const ERR_PRODUCT_SALES_PARAM         = 508003;
    public const ERR_PRODUCT_SALES_GROUP_BY_TYPE = 508004;


    public const CODE_TEXT = [

        //菜品模块
        self::ERR_PRODUCT_NAME_NOT_INPUT         => "请输入菜品名称",
        self::ERR_PRODUCT_NAME_EXIST             => "该菜品名称已经存在，请修改",
        self::ERR_PRODUCT_CATE_NOT_SELECT        => "请选择分类",
        self::ERR_PRODUCT_DESC_NOT_INPUT         => "请填写描述",
        self::ERR_PRODUCT_IMAGE_NOU_INPUT        => "请上传菜品图片",
        self::ERR_PRODUCT_PRICE_NOT_INPUT        => "请填写价格",
        self::ERR_PRODUCT_PRICE                  => "填写价格错误",
        self::ERR_PRODUCT_PRICE_TWO_POS          => "价格请保留两位小数",
        self::ERR_PRODUCT_NOT_EXIST              => "非法数据，商品不存在",
        self::ERR_PRODUCT_STATUS                 => "非法数据，状态数据错误",
        self::ERR_PRODUCT_STATUS_EXIST           => "编辑状态和当前状态一致，无需更改",
        self::ERR_PRODUCT_NOT_INPUT              => "非法数据,参数错误！",
        self::ERR_PRODUCT_INSERT                 => "添加失败，请稍后重试！",
        self::ERR_PRODUCT_PARAM                  => "参数错误",
        self::ERR_PRODUCT_BIND_MENU              => "菜品绑定菜单失败",
        self::ERR_PRODUCT_UPDATE                 => "菜品修改失败",
        self::ERR_PRODUCT_VIP_PRICE_NOT_INPUT    => "请填写VIP价格",
        self::ERR_PRODUCT_COST_PRICE_NOT_INPUT   => "请填写原价",
        self::ERR_PRODUCT_COMPANY_NOT_INPUT      => "请输入菜品单位 例如 5元/10串",
        self::ERR_PRODUCT_PRODUCT_NOT_IN_SHOP    => "店铺下未关联该菜品",
        self::ERR_PRODUCT_BRAND_NOT_INPUT        => "请选择品牌",
        self::ERR_PRODUCT_PACKAGE_INSERT         => "套餐添加失败",
        self::ERR_PRODUCT_MODIFY                 => "菜品编辑失败",
        self::ERR_PRODUCT_PACKAGE_DELETED        => "套餐删除失败",
        self::ERR_PRODUCT_GET                    => "获取套餐失败",
        self::ERR_PRODUCT_KIND_NOT_INPUT         => "请填写商品属性",
        self::CUSTOMER_PRODUCT_LIMIT             => "自定义菜品已达上架上限",
        self::ERR_PRODUCT_STATUS_SET             => "菜品状态修改失败",
        self::ERR_PRODUCT_STATUS_DELETE          => "菜品删除失败",
        self::ERR_PRODUCT_WEB_CUSTOM_PACKAGE_ADD => "运营端暂不支持添加自定义套餐",
        self::ERR_PRODUCT_EXISTS_IN_PACKAGE      => "单品已在套餐中存在",
        self::ERR_PRODUCT_DEL_AFTER_OFFLINE      => "请将商品下架后再进行删除操作",
        self::ERR_CHILD_PRODUCT                  => "无效的子菜品数据",
        self::ERR_PRODUCT_STATUS_OFF             => "该商品已经下架，请与门店沟通确认。",

        self::ERR_PRODUCT_NO_MENU             => "店铺没有绑定的菜单",
        self::ERR_PRODUCT_SALES_PARAM         => "菜品销售统计参数错误",
        self::ERR_PRODUCT_SALES_GROUP_BY_TYPE => "不存在的groupByType",
    ];
}
